import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import legacy from "@vitejs/plugin-legacy"
import vue from '@vitejs/plugin-vue'

export default defineConfig({
  base: './',
  build: {
    chunkSizeWarningLimit: 1600
  },
  plugins: [
    vue(),
    legacy({
        targets: ['defaults', 'not IE 11'],
    })
  ],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    },
  },
})
